package combat.coffeeshop.application;

import combat.coffeeshop.coffee.Coffee;
import combat.coffeeshop.coffee.LuckyCoffee;
import combat.coffeeshop.decorators.ChocolateCoffeeDecorator;
import combat.coffeeshop.decorators.MilkCoffeeDecorator;
import combat.coffeeshop.decorators.SugarCoffeeDecorator;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-03
 */
public class CoffeeShop {
    public static void main(String[] args) {
        Coffee luckyCoffee = new LuckyCoffee();
        System.out.println(luckyCoffee.description() + " Cost: $" + luckyCoffee.cost());

        // 加牛奶
        luckyCoffee = new MilkCoffeeDecorator(luckyCoffee);
        System.out.println(luckyCoffee.description() + " Cost: $" + luckyCoffee.cost());

        // 加糖
        luckyCoffee = new SugarCoffeeDecorator(luckyCoffee);
        System.out.println(luckyCoffee.description() + " Cost: $" + luckyCoffee.cost());

        // 加巧克力
        luckyCoffee = new ChocolateCoffeeDecorator(luckyCoffee);
        System.out.println(luckyCoffee.description() + " Cost: $" + luckyCoffee.cost());
    }
}
